
UPDATE FLW_ID_DATABASECHANGELOGLOCK SET LOCKED = 1, LOCKEDBY = '192.168.1.31 (192.168.1.31)', LOCKGRANTED = TIMESTAMP('2020-03-26 14:29:30.438') WHERE ID = 1 AND LOCKED = 0;

UPDATE FLW_ID_DATABASECHANGELOGLOCK SET LOCKED = 0, LOCKEDBY = NULL, LOCKGRANTED = NULL WHERE ID = 1;


UPDATE FLW_LIC_DATABASECHANGELOGLOCK SET LOCKED = 1, LOCKEDBY = '192.168.1.31 (192.168.1.31)', LOCKGRANTED = TIMESTAMP('2020-03-26 14:29:32.711') WHERE ID = 1 AND LOCKED = 0;

UPDATE FLW_LIC_DATABASECHANGELOGLOCK SET LOCKED = 0, LOCKEDBY = NULL, LOCKGRANTED = NULL WHERE ID = 1;


UPDATE FLW_PL_DATABASECHANGELOGLOCK SET LOCKED = 1, LOCKEDBY = '192.168.1.31 (192.168.1.31)', LOCKGRANTED = TIMESTAMP('2020-03-26 14:29:34.577') WHERE ID = 1 AND LOCKED = 0;

UPDATE FLW_PL_DATABASECHANGELOGLOCK SET LOCKED = 0, LOCKEDBY = NULL, LOCKGRANTED = NULL WHERE ID = 1;


UPDATE ACT_APP_DATABASECHANGELOGLOCK SET LOCKED = 1, LOCKEDBY = '192.168.1.31 (192.168.1.31)', LOCKGRANTED = TIMESTAMP('2020-03-26 14:29:35.881') WHERE ID = 1 AND LOCKED = 0;

UPDATE ACT_APP_DATABASECHANGELOGLOCK SET LOCKED = 0, LOCKEDBY = NULL, LOCKGRANTED = NULL WHERE ID = 1;


UPDATE FLW_FO_DATABASECHANGELOGLOCK SET LOCKED = 1, LOCKEDBY = '192.168.1.31 (192.168.1.31)', LOCKGRANTED = TIMESTAMP('2020-03-26 14:29:36.848') WHERE ID = 1 AND LOCKED = 0;

UPDATE FLW_FO_DATABASECHANGELOGLOCK SET LOCKED = 0, LOCKEDBY = NULL, LOCKGRANTED = NULL WHERE ID = 1;


UPDATE FLW_CO_DATABASECHANGELOGLOCK SET LOCKED = 1, LOCKEDBY = '192.168.1.31 (192.168.1.31)', LOCKGRANTED = TIMESTAMP('2020-03-26 14:29:37.917') WHERE ID = 1 AND LOCKED = 0;

UPDATE FLW_CO_DATABASECHANGELOGLOCK SET LOCKED = 0, LOCKEDBY = NULL, LOCKGRANTED = NULL WHERE ID = 1;


UPDATE FLW_AD_DATABASECHANGELOGLOCK SET LOCKED = 1, LOCKEDBY = '192.168.1.31 (192.168.1.31)', LOCKGRANTED = TIMESTAMP('2020-03-26 14:29:39.120') WHERE ID = 1 AND LOCKED = 0;

ALTER TABLE FLW_ACTION_INSTANCE ADD FORM_PARENT_DEPLOYMENT_ID_ VARCHAR(255);

CALL SYSPROC.ADMIN_CMD ('REORG TABLE FLW_ACTION_INSTANCE');

UPDATE FLW_ACTION_INSTANCE SET FORM_PARENT_DEPLOYMENT_ID_ = '__FLOWABLE_MIGRATED_PARENT_DEPLOYMENT';

ALTER TABLE FLW_HI_ACTION_INSTANCE ADD FORM_PARENT_DEPLOYMENT_ID_ VARCHAR(255);

CALL SYSPROC.ADMIN_CMD ('REORG TABLE FLW_HI_ACTION_INSTANCE');

UPDATE FLW_HI_ACTION_INSTANCE SET FORM_PARENT_DEPLOYMENT_ID_ = '__FLOWABLE_MIGRATED_PARENT_DEPLOYMENT';

INSERT INTO FLW_AD_DATABASECHANGELOG (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('15', 'flowable', 'com/flowable/action/db/liquibase/flowable-action-db-changelog.xml', CURRENT TIMESTAMP, 15, '7:c8cc26c8b4b59e7ccfd541e331cc9734', 'addColumn tableName=FLW_ACTION_INSTANCE; addColumn tableName=FLW_HI_ACTION_INSTANCE', '', 'EXECUTED', NULL, NULL, '3.5.3', '5229379386');

UPDATE FLW_AD_DATABASECHANGELOGLOCK SET LOCKED = 0, LOCKEDBY = NULL, LOCKGRANTED = NULL WHERE ID = 1;


UPDATE FLW_AU_DATABASECHANGELOGLOCK SET LOCKED = 1, LOCKEDBY = '192.168.1.31 (192.168.1.31)', LOCKGRANTED = TIMESTAMP('2020-03-26 14:29:40.587') WHERE ID = 1 AND LOCKED = 0;

UPDATE FLW_AU_DATABASECHANGELOGLOCK SET LOCKED = 0, LOCKEDBY = NULL, LOCKGRANTED = NULL WHERE ID = 1;


UPDATE FLW_DO_DATABASECHANGELOGLOCK SET LOCKED = 1, LOCKEDBY = '192.168.1.31 (192.168.1.31)', LOCKGRANTED = TIMESTAMP('2020-03-26 14:29:41.397') WHERE ID = 1 AND LOCKED = 0;

ALTER TABLE FLW_MASTER_DATA_INSTANCE ADD TENANT_ID_ VARCHAR(64) DEFAULT '';

CALL SYSPROC.ADMIN_CMD ('REORG TABLE FLW_MASTER_DATA_INSTANCE');

INSERT INTO FLW_DO_DATABASECHANGELOG (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('5', 'flowable', 'com/flowable/dataobject/db/liquibase/flowable-dataobject-db-changelog.xml', CURRENT TIMESTAMP, 5, '7:11314e0c6e2f61908ad726575e5a7bdb', 'addColumn tableName=FLW_MASTER_DATA_INSTANCE', '', 'EXECUTED', NULL, NULL, '3.5.3', '5229381919');

UPDATE FLW_MASTER_DATA_INSTANCE MD
            SET TENANT_ID_ = (SELECT DEF.TENANT_ID_ FROM FLW_DATAOBJECT_DEFINITION DEF WHERE DEF.ID_ = MD.DEFINITION_ID_);

INSERT INTO FLW_DO_DATABASECHANGELOG (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('6', 'flowable', 'com/flowable/dataobject/db/liquibase/flowable-dataobject-db-changelog.xml', CURRENT TIMESTAMP, 6, '7:d0c31de4dc9b71c6459424864fed1ff0', 'sql', '', 'EXECUTED', NULL, NULL, '3.5.3', '5229381919');

UPDATE FLW_DO_DATABASECHANGELOGLOCK SET LOCKED = 0, LOCKEDBY = NULL, LOCKGRANTED = NULL WHERE ID = 1;


UPDATE FLW_PO_DATABASECHANGELOGLOCK SET LOCKED = 1, LOCKEDBY = '192.168.1.31 (192.168.1.31)', LOCKGRANTED = TIMESTAMP('2020-03-26 14:29:42.915') WHERE ID = 1 AND LOCKED = 0;

UPDATE FLW_PO_DATABASECHANGELOGLOCK SET LOCKED = 0, LOCKEDBY = NULL, LOCKGRANTED = NULL WHERE ID = 1;


UPDATE FLW_SE_DATABASECHANGELOGLOCK SET LOCKED = 1, LOCKEDBY = '192.168.1.31 (192.168.1.31)', LOCKGRANTED = TIMESTAMP('2020-03-26 14:29:43.526') WHERE ID = 1 AND LOCKED = 0;

UPDATE FLW_SE_DATABASECHANGELOGLOCK SET LOCKED = 0, LOCKEDBY = NULL, LOCKGRANTED = NULL WHERE ID = 1;


UPDATE FLW_TP_DATABASECHANGELOGLOCK SET LOCKED = 1, LOCKEDBY = '192.168.1.31 (192.168.1.31)', LOCKGRANTED = TIMESTAMP('2020-03-26 14:29:44.096') WHERE ID = 1 AND LOCKED = 0;

UPDATE FLW_TP_DATABASECHANGELOGLOCK SET LOCKED = 0, LOCKEDBY = NULL, LOCKGRANTED = NULL WHERE ID = 1;


UPDATE FLW_ENG_DATABASECHANGELOGLOCK SET LOCKED = 1, LOCKEDBY = '192.168.1.31 (192.168.1.31)', LOCKGRANTED = TIMESTAMP('2020-03-26 14:29:44.620') WHERE ID = 1 AND LOCKED = 0;

UPDATE FLW_ENG_DATABASECHANGELOGLOCK SET LOCKED = 0, LOCKEDBY = NULL, LOCKGRANTED = NULL WHERE ID = 1;

